import hasRole from './hasRole'
import hasPermi from './hasPermi'
import adaptive from './adaptive'
import hasMenu from './hasMenu'
import hasOrgSelect from './hasOrgSelect'
const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
  Vue.directive('adaptive', adaptive)
  Vue.directive('hasMenu', hasMenu)
  Vue.directive('hasOrg', hasOrgSelect)
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install);
}

export default install
